﻿package plugin.shenlu
{
    import com.core.*;

    public class ShenluControl extends Control
    {

        public function ShenluControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "shenlu")
            {
                if (param2.property == "getinfo")
                {
                    this.target.getinfo();
                }
                if (param2.property == "updateatkchipMSG")
                {
                    this.target.updateatkchipMSG(param2.newvalue);
                }
                if (param2.property == "updatedefchipMSG")
                {
                    this.target.updatedefchipMSG(param2.newvalue);
                }
                if (param2.property == "updatehpchipMSG")
                {
                    this.target.updatehpchipMSG(param2.newvalue);
                }
                if (param2.property == "updatecrichipMSG")
                {
                    this.target.updatecrichipMSG(param2.newvalue);
                }
                if (param2.property == "shenluYB")
                {
                    this.target.shuaxinYB();
                }
            }
            return;
        }// end function

    }
}
